package com.shiftl.data.aroma.entity;

import java.util.List;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class CompanyEnt {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
    private String encodedKey;
    
   
    @Persistent
    @Extension(vendorName="datanucleus", key="gae.pk-id", value="true")
	private Long id;
	
	@Persistent
	private String name;
	
	@Persistent
	private String description;
	
	@Persistent(mappedBy="company") 
	private List<IncenseEnt> incenseProducts;

	public CompanyEnt(String name, String description){
		this.name = name;
		this.description = description;
	}
	public Long getId() {
		return id;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public List<IncenseEnt> getIncenseProducts() {
		return incenseProducts;
	}

	public void setIncenseProducts(List<IncenseEnt> incenseProducts) {
		this.incenseProducts = incenseProducts;
	}
}
